package com.practice.math;

public class Rectangle {
	private int		left;
	private int		right;
	private int		height;
	
	public Rectangle(int x1, int x2, int y) {
		left = x1;
		right = x2;
		height = y;
	}
	
	public int getLeft() {
		return left;
	}
	
	public int getRight() {
		return right;
	}
	
	public int getHeight() {
		return height;
	}
	
	public boolean contains(Point p) {
		return p.getX() >= left && p.getX() <= right && p.getY() <= height;
	}
}
